<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML>
<html>
  <head>
    <title>edit_goal.jsp</title>
    <link rel="stylesheet" type="text/css" href="static/bootstrap/css/bootstrap.min.css" />
  </head>
  
  <body class="body">
  	<%@ include file="top.jsp" %>
	<div class="container" style="padding-top:60px">
		<div class="row">
			<div class="span9">
				<form class="form-horizontal" action="goal.jspx?m=update" method="post">
					<fieldset>
						<legend>编辑目标</legend>
						<c:if test="${requestScope.msg !=null }">
							<div class="alert alert-error">
							<button class="close" data-dismiss="alert" type="button">×</button>
							  	${requestScope.msg}
					    	</div>
						</c:if>
						<div class="control-group">
							<label class="control-label" for="input01">目标名称</label>
							<div class="controls">
								<input type="hidden" name="goalId" value="${requestScope.goal.id }">
								<input id="input01" class="span5" type="text" name="name" value="${requestScope.goal.name }" x-webkit-speech="undefined">
								<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">目标描述</label>
							<div class="controls">
								<textarea class="span5" name="describe" rows="8">${requestScope.goal.describe }</textarea>
							</div>
						</div>
						<div class="form-actions">
							<button class="btn btn-primary" type="submit">保存</button>
							<a class="btn" href="goal.jspx?m=">返回</a>
						</div>
					</fieldset>
				</form>
			</div>
			<div class="span3"> </div>
		</div>
	</div>
	<script type="text/javascript" src="static/jquery/jquery.js"></script>
  	<script type="text/javascript" src="static/bootstrap/js/bootstrap.min.js"></script>
  </body>
</html>
